//
//  UIButton+Creat.m
//  CoreData_通讯录
//
//  Created by z on 15/11/21.
//  Copyright © 2015年 z. All rights reserved.
//

#import "UIButton+Creat.h"

@implementation UIButton (Creat)

+ (UIButton *)createButtonWithFrame:(CGRect)frame Title:(NSString *)title Target:(id)target Action:(SEL)action{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = frame;
    [button setTitle:title forState:UIControlStateNormal];
    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    return button;
}


@end
